﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrBieuMau.ascx.cs"
    Inherits="TCHSHue.Modules.AdminControl.BieuMau.ctrBieuMau" %>
<div id="slideimage" class="inbox">
    <h3 class="tieude">
        Tải lên biểu mẫu</h3>
    <table style="width: 100%">
        <tr>
            <td colspan="2" class="line">
            </td>
        </tr>
    </table>
    <br />
    <div>
        <table>
            <tr>
                <td style="font: 12px;">
                    Tên tài liệu
                </td>
                <td>
                    <asp:TextBox ID="txtTenTaiLieu" Width="400px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="font: 12px;">
                    Chọn tài liệu
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" class="multi" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnUpload" runat="server" Text="Tải lên" OnClick="btnUpload_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div visible="false" class="ui-widget" id="thongBao" runat="server">
        <div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
            <p>
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                <div id="lbThongbao" runat="server">
                </div>
            </p>
        </div>
    </div>
</div>
<br />
<div id="Div1" class="inbox">
    <h3 class="tieude">
        Danh sách tài liệu đã tải lên</h3>
    <table style="width: 100%">
        <tr>
            <td colspan="2" class="line">
            </td>
        </tr>
    </table>
    <br />
    <div class="tableAdmin">
        <asp:GridView ID="gridBieuMa" runat="server" AutoGenerateColumns="False" EnableModelValidation="True">
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="tenTaiLieu" HeaderText="TÊN BIỂU MẪU" />
                <asp:TemplateField HeaderText="Thao tác">
                    <ItemTemplate>
                        <%--<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Style/Images/edit.png"
                            CommandArgument='<%# Eval("maTaiLieu") %>' OnCommand="RedirectEdit" />--%>
                        <asp:ImageButton ID="ImageButton2" CommandArgument='<%#Eval("maTaiLieu") %>' OnCommand="Delete"
                            OnClientClick="return confirm('Bạn có chắc muốn xóa?')" runat="server" ImageUrl="~/Style/Images/delete.png" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                Hiện tại không có tài liệu nào
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</div>
